<?php

class Input
{

static function post($field = null, $default = null) {
    if ($field == null) {
        return $_POST;
    }
    return isset($_POST[$field]) ? $_POST[$field] : $default;
}

static function get($field, $default = null) {
    if ($field == null) {
        return $_GET;
    }
    return isset($_GET[$field]) ? $_POST[$_GET] : $default;
}

}